<?php global $config;?>
<?php $this->headScript()->appendFile($config->JS_PATH . 'showcase.js'); ?>
 <section id="showcase_middlecontainer">
    <div class="container" id="showcase">
      <div class="arrow 01"><img src="<?php echo $config->IMAGE_PATH; ?>arrow_03.png" alt="arrow" /></div>
      <div class="subheader">
        <div class="subheader-icon"></div>
        <div class="subheader-text">Showcase <span>Check Out Our Portfolio.</span></div>
        <div class="subheader-separator"></div>
      </div>
      <div class="showcase_content">
        <div class="showcase-sub-container">
	<?php if (count($this->portfolios) > 0): ?>
		<?php $i = 1;?>
	    <?php foreach($this->portfolios as $_portfolio):?>
	    <div class="pic-frame <?php echo ( ($i%3) == 0)?"nomargin":"";?>">
		<div class="pic">
		    <a title="<?php echo $_portfolio->name;?>" href="<?php echo $config->IMAGE_PATH; ?>portfolio/<?php echo $_portfolio->thumb_image; ?>" class="fancybox" >
			<span class="roll" style="opacity: 0;"></span>
			<table width="100%" height="100%"><tr><td valign="middle" align="center">
				<img alt="<?php echo $_portfolio->name; ?>" src="<?php echo $config->IMAGE_PATH; ?>portfolio/<?php echo $_portfolio->imagename; ?>"/>
			</td></tr></table>
		    </a>
		</div>
        <p width="100%" style="text-align:center;"><a href="<?php echo $_portfolio->link; ?>" style="text-decoration:none;font-size:14px;" target="_blank" title="<?php echo $_portfolio->name; ?>" ><?php echo $_portfolio->name; ?></a></p>
	    </div>
		<?php $i++;?>
	    <?php endforeach;?>
	<?php endif;?>
		<div class="clear"></div>
	    <div class="paginator-cnt">
		 <div class="fright">
			 <?php echo $this->paginator->displayPages(); ?>
		 </div>
		 <div class="clear"></div>
	    </div>
        </div>
        <div class="clear"></div>
      </div>
      <!-- end of showcase_content -->
    </div>
    <!-- end of container -->
  </section>  